package com.mycode.builder06.resolve;

// 游戏角色创建控制器：指挥官
public class ActorController {

    // 逐步构建复杂产品对象
    public Actor construct(ActorBuilder actorBuilder) {
        actorBuilder.buildType();
        actorBuilder.buildSex();
        actorBuilder.buildFace();
        actorBuilder.buildCostume();
        actorBuilder.buildHairstyle();
        Actor actor = actorBuilder.createActor();
        return actor;
    }
}
